#!/usr/bin/pythonBasics
# -*- coding: utf-8 -*-
# @Time : 2021/4/14 11:07
# @Author : super
# @File : Dao
# @Project : pythonFile

import mysql.connector.pooling

config = {
	'host': 'localhost',
	'port': 3306,
	'user': 'root',
	'password': 'root',
	'database': 'test'
}

try:
	pool = mysql.connector.pooling.MySQLConnectionPool(
		**config,
		pool_size = 10
	)
except Exception as e:
	print(e)